import request from '@/utils/request'


export function edit(data){
  return request({
    url: 'api/warnRemindUserConf/warnuser',
    method: 'put',
    data
  })
}

export function add(data){
    return request({
      url: 'api/warnRemindUserConf/warnuser',
      method: 'post',
      data
    })
  }

export function del(data){
  return request({
    url: 'api/warnRemindUserConf/warnuser',
    method: 'delete',
    data
  })
}

export function getappCodeAndName(){
  return request({
  url: 'api/appDef/qrycodename',
  method: 'get',
  }) 
}

export function getRuleCode(){
  return request({
    url: 'api/warnRuleConf/warnrulecode',
    method: 'get',
  })
}

export function getUserName(){
  return request({
    url:'api/users',
    method: 'get'
  })
}

export default { edit, del ,add, getappCodeAndName ,getRuleCode,getUserName}

